Optimal. Leaf size=192 \[ -\frac {b^3 (b c-4 a d) \log \left (a+b x^2\right )}{2 a^2 (b c-a d)^4}-\frac {d^2 \left (a^2 d^2-4 a b c d+6 b^2 c^2\right ) \log \left (c+d x^2\right )}{2 c^3 (b c-a d)^4}+\frac {\log (x)}{a^2 c^3}+\frac {b^3}{2 a \left (a+b x^2\right ) (b c-a d)^3}+\frac {d^2 (3 b c-a d)}{2 c^2 \left (c+d x^2\right ) (b c-a d)^3}+\frac {d^2}{4 c \left (c+d x^2\right )^2 (b c-a d)^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.24, antiderivative size = 192, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {446, 88} \begin {gather*} -\frac {d^2 \left (a^2 d^2-4 a b c d+6 b^2 c^2\right ) \log \left (c+d x^2\right )}{2 c^3 (b c-a d)^4}-\frac {b^3 (b c-4 a d) \log \left (a+b x^2\right )}{2 a^2 (b c-a d)^4}+\frac {\log (x)}{a^2 c^3}+\frac {b^3}{2 a \left (a+b x^2\right ) (b c-a d)^3}+\frac {d^2 (3 b c-a d)}{2 c^2 \left (c+d x^2\right ) (b c-a d)^3}+\frac {d^2}{4 c \left (c+d x^2\right )^2 (b c-a d)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 88
Rule 446
Rubi steps
\begin {align*} \int \frac {1}{x \left (a+b x^2\right )^2 \left (c+d x^2\right )^3} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{x (a+b x)^2 (c+d x)^3} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (\frac {1}{a^2 c^3 x}+\frac {b^4}{a (-b c+a d)^3 (a+b x)^2}+\frac {b^4 (-b c+4 a d)}{a^2 (-b c+a d)^4 (a+b x)}-\frac {d^3}{c (b c-a d)^2 (c+d x)^3}-\frac {d^3 (3 b c-a d)}{c^2 (b c-a d)^3 (c+d x)^2}-\frac {d^3 \left (6 b^2 c^2-4 a b c d+a^2 d^2\right )}{c^3 (b c-a d)^4 (c+d x)}\right ) \, dx,x,x^2\right )\\ &=\frac {b^3}{2 a (b c-a d)^3 \left (a+b x^2\right )}+\frac {d^2}{4 c (b c-a d)^2 \left (c+d x^2\right )^2}+\frac {d^2 (3 b c-a d)}{2 c^2 (b c-a d)^3 \left (c+d x^2\right )}+\frac {\log (x)}{a^2 c^3}-\frac {b^3 (b c-4 a d) \log \left (a+b x^2\right )}{2 a^2 (b c-a d)^4}-\frac {d^2 \left (6 b^2 c^2-4 a b c d+a^2 d^2\right ) \log \left (c+d x^2\right )}{2 c^3 (b c-a d)^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.27, size = 187, normalized size = 0.97 \begin {gather*} \frac {1}{4} \left (\frac {2 b^3 (4 a d-b c) \log \left (a+b x^2\right )}{a^2 (b c-a d)^4}-\frac {2 d^2 \left (a^2 d^2-4 a b c d+6 b^2 c^2\right ) \log \left (c+d x^2\right )}{c^3 (b c-a d)^4}+\frac {4 \log (x)}{a^2 c^3}-\frac {2 b^3}{a \left (a+b x^2\right ) (a d-b c)^3}+\frac {2 d^2 (3 b c-a d)}{c^2 \left (c+d x^2\right ) (b c-a d)^3}+\frac {d^2}{c \left (c+d x^2\right )^2 (b c-a d)^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x \left (a+b x^2\right )^2 \left (c+d x^2\right )^3} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 30.22, size = 1058, normalized size = 5.51 \begin {gather*} \frac {2 \, a b^{4} c^{6} - 2 \, a^{2} b^{3} c^{5} d + 7 \, a^{3} b^{2} c^{4} d^{2} - 10 \, a^{4} b c^{3} d^{3} + 3 \, a^{5} c^{2} d^{4} + 2 \, {\left (a b^{4} c^{4} d^{2} + 2 \, a^{2} b^{3} c^{3} d^{3} - 4 \, a^{3} b^{2} c^{2} d^{4} + a^{4} b c d^{5}\right )} x^{4} + {\left (4 \, a b^{4} c^{5} d + 3 \, a^{2} b^{3} c^{4} d^{2} - 4 \, a^{3} b^{2} c^{3} d^{3} - 5 \, a^{4} b c^{2} d^{4} + 2 \, a^{5} c d^{5}\right )} x^{2} - 2 \, {\left (a b^{4} c^{6} - 4 \, a^{2} b^{3} c^{5} d + {\left (b^{5} c^{4} d^{2} - 4 \, a b^{4} c^{3} d^{3}\right )} x^{6} + {\left (2 \, b^{5} c^{5} d - 7 \, a b^{4} c^{4} d^{2} - 4 \, a^{2} b^{3} c^{3} d^{3}\right )} x^{4} + {\left (b^{5} c^{6} - 2 \, a b^{4} c^{5} d - 8 \, a^{2} b^{3} c^{4} d^{2}\right )} x^{2}\right )} \log \left (b x^{2} + a\right ) - 2 \, {\left (6 \, a^{3} b^{2} c^{4} d^{2} - 4 \, a^{4} b c^{3} d^{3} + a^{5} c^{2} d^{4} + {\left (6 \, a^{2} b^{3} c^{2} d^{4} - 4 \, a^{3} b^{2} c d^{5} + a^{4} b d^{6}\right )} x^{6} + {\left (12 \, a^{2} b^{3} c^{3} d^{3} - 2 \, a^{3} b^{2} c^{2} d^{4} - 2 \, a^{4} b c d^{5} + a^{5} d^{6}\right )} x^{4} + {\left (6 \, a^{2} b^{3} c^{4} d^{2} + 8 \, a^{3} b^{2} c^{3} d^{3} - 7 \, a^{4} b c^{2} d^{4} + 2 \, a^{5} c d^{5}\right )} x^{2}\right )} \log \left (d x^{2} + c\right ) + 4 \, {\left (a b^{4} c^{6} - 4 \, a^{2} b^{3} c^{5} d + 6 \, a^{3} b^{2} c^{4} d^{2} - 4 \, a^{4} b c^{3} d^{3} + a^{5} c^{2} d^{4} + {\left (b^{5} c^{4} d^{2} - 4 \, a b^{4} c^{3} d^{3} + 6 \, a^{2} b^{3} c^{2} d^{4} - 4 \, a^{3} b^{2} c d^{5} + a^{4} b d^{6}\right )} x^{6} + {\left (2 \, b^{5} c^{5} d - 7 \, a b^{4} c^{4} d^{2} + 8 \, a^{2} b^{3} c^{3} d^{3} - 2 \, a^{3} b^{2} c^{2} d^{4} - 2 \, a^{4} b c d^{5} + a^{5} d^{6}\right )} x^{4} + {\left (b^{5} c^{6} - 2 \, a b^{4} c^{5} d - 2 \, a^{2} b^{3} c^{4} d^{2} + 8 \, a^{3} b^{2} c^{3} d^{3} - 7 \, a^{4} b c^{2} d^{4} + 2 \, a^{5} c d^{5}\right )} x^{2}\right )} \log \relax (x)}{4 \, {\left (a^{3} b^{4} c^{9} - 4 \, a^{4} b^{3} c^{8} d + 6 \, a^{5} b^{2} c^{7} d^{2} - 4 \, a^{6} b c^{6} d^{3} + a^{7} c^{5} d^{4} + {\left (a^{2} b^{5} c^{7} d^{2} - 4 \, a^{3} b^{4} c^{6} d^{3} + 6 \, a^{4} b^{3} c^{5} d^{4} - 4 \, a^{5} b^{2} c^{4} d^{5} + a^{6} b c^{3} d^{6}\right )} x^{6} + {\left (2 \, a^{2} b^{5} c^{8} d - 7 \, a^{3} b^{4} c^{7} d^{2} + 8 \, a^{4} b^{3} c^{6} d^{3} - 2 \, a^{5} b^{2} c^{5} d^{4} - 2 \, a^{6} b c^{4} d^{5} + a^{7} c^{3} d^{6}\right )} x^{4} + {\left (a^{2} b^{5} c^{9} - 2 \, a^{3} b^{4} c^{8} d - 2 \, a^{4} b^{3} c^{7} d^{2} + 8 \, a^{5} b^{2} c^{6} d^{3} - 7 \, a^{6} b c^{5} d^{4} + 2 \, a^{7} c^{4} d^{5}\right )} x^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.36, size = 470, normalized size = 2.45 \begin {gather*} -\frac {{\left (b^{5} c - 4 \, a b^{4} d\right )} \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, {\left (a^{2} b^{5} c^{4} - 4 \, a^{3} b^{4} c^{3} d + 6 \, a^{4} b^{3} c^{2} d^{2} - 4 \, a^{5} b^{2} c d^{3} + a^{6} b d^{4}\right )}} - \frac {{\left (6 \, b^{2} c^{2} d^{3} - 4 \, a b c d^{4} + a^{2} d^{5}\right )} \log \left ({\left | d x^{2} + c \right |}\right )}{2 \, {\left (b^{4} c^{7} d - 4 \, a b^{3} c^{6} d^{2} + 6 \, a^{2} b^{2} c^{5} d^{3} - 4 \, a^{3} b c^{4} d^{4} + a^{4} c^{3} d^{5}\right )}} + \frac {b^{5} c x^{2} - 4 \, a b^{4} d x^{2} + 2 \, a b^{4} c - 5 \, a^{2} b^{3} d}{2 \, {\left (a^{2} b^{4} c^{4} - 4 \, a^{3} b^{3} c^{3} d + 6 \, a^{4} b^{2} c^{2} d^{2} - 4 \, a^{5} b c d^{3} + a^{6} d^{4}\right )} {\left (b x^{2} + a\right )}} + \frac {18 \, b^{2} c^{2} d^{4} x^{4} - 12 \, a b c d^{5} x^{4} + 3 \, a^{2} d^{6} x^{4} + 42 \, b^{2} c^{3} d^{3} x^{2} - 32 \, a b c^{2} d^{4} x^{2} + 8 \, a^{2} c d^{5} x^{2} + 25 \, b^{2} c^{4} d^{2} - 22 \, a b c^{3} d^{3} + 6 \, a^{2} c^{2} d^{4}}{4 \, {\left (b^{4} c^{7} - 4 \, a b^{3} c^{6} d + 6 \, a^{2} b^{2} c^{5} d^{2} - 4 \, a^{3} b c^{4} d^{3} + a^{4} c^{3} d^{4}\right )} {\left (d x^{2} + c\right )}^{2}} + \frac {\log \left (x^{2}\right )}{2 \, a^{2} c^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.03, size = 374, normalized size = 1.95 \begin {gather*} \frac {a^{2} d^{4}}{4 \left (a d -b c \right )^{4} \left (d \,x^{2}+c \right )^{2} c}-\frac {a b \,d^{3}}{2 \left (a d -b c \right )^{4} \left (d \,x^{2}+c \right )^{2}}+\frac {b^{2} c \,d^{2}}{4 \left (a d -b c \right )^{4} \left (d \,x^{2}+c \right )^{2}}+\frac {a^{2} d^{4}}{2 \left (a d -b c \right )^{4} \left (d \,x^{2}+c \right ) c^{2}}-\frac {a^{2} d^{4} \ln \left (d \,x^{2}+c \right )}{2 \left (a d -b c \right )^{4} c^{3}}-\frac {2 a b \,d^{3}}{\left (a d -b c \right )^{4} \left (d \,x^{2}+c \right ) c}+\frac {2 a b \,d^{3} \ln \left (d \,x^{2}+c \right )}{\left (a d -b c \right )^{4} c^{2}}+\frac {b^{4} c}{2 \left (a d -b c \right )^{4} \left (b \,x^{2}+a \right ) a}+\frac {2 b^{3} d \ln \left (b \,x^{2}+a \right )}{\left (a d -b c \right )^{4} a}-\frac {b^{4} c \ln \left (b \,x^{2}+a \right )}{2 \left (a d -b c \right )^{4} a^{2}}-\frac {b^{3} d}{2 \left (a d -b c \right )^{4} \left (b \,x^{2}+a \right )}-\frac {3 b^{2} d^{2} \ln \left (d \,x^{2}+c \right )}{\left (a d -b c \right )^{4} c}+\frac {3 b^{2} d^{2}}{2 \left (a d -b c \right )^{4} \left (d \,x^{2}+c \right )}+\frac {\ln \relax (x )}{a^{2} c^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.34, size = 527, normalized size = 2.74 \begin {gather*} -\frac {{\left (b^{4} c - 4 \, a b^{3} d\right )} \log \left (b x^{2} + a\right )}{2 \, {\left (a^{2} b^{4} c^{4} - 4 \, a^{3} b^{3} c^{3} d + 6 \, a^{4} b^{2} c^{2} d^{2} - 4 \, a^{5} b c d^{3} + a^{6} d^{4}\right )}} - \frac {{\left (6 \, b^{2} c^{2} d^{2} - 4 \, a b c d^{3} + a^{2} d^{4}\right )} \log \left (d x^{2} + c\right )}{2 \, {\left (b^{4} c^{7} - 4 \, a b^{3} c^{6} d + 6 \, a^{2} b^{2} c^{5} d^{2} - 4 \, a^{3} b c^{4} d^{3} + a^{4} c^{3} d^{4}\right )}} + \frac {2 \, b^{3} c^{4} + 7 \, a^{2} b c^{2} d^{2} - 3 \, a^{3} c d^{3} + 2 \, {\left (b^{3} c^{2} d^{2} + 3 \, a b^{2} c d^{3} - a^{2} b d^{4}\right )} x^{4} + {\left (4 \, b^{3} c^{3} d + 7 \, a b^{2} c^{2} d^{2} + 3 \, a^{2} b c d^{3} - 2 \, a^{3} d^{4}\right )} x^{2}}{4 \, {\left (a^{2} b^{3} c^{7} - 3 \, a^{3} b^{2} c^{6} d + 3 \, a^{4} b c^{5} d^{2} - a^{5} c^{4} d^{3} + {\left (a b^{4} c^{5} d^{2} - 3 \, a^{2} b^{3} c^{4} d^{3} + 3 \, a^{3} b^{2} c^{3} d^{4} - a^{4} b c^{2} d^{5}\right )} x^{6} + {\left (2 \, a b^{4} c^{6} d - 5 \, a^{2} b^{3} c^{5} d^{2} + 3 \, a^{3} b^{2} c^{4} d^{3} + a^{4} b c^{3} d^{4} - a^{5} c^{2} d^{5}\right )} x^{4} + {\left (a b^{4} c^{7} - a^{2} b^{3} c^{6} d - 3 \, a^{3} b^{2} c^{5} d^{2} + 5 \, a^{4} b c^{4} d^{3} - 2 \, a^{5} c^{3} d^{4}\right )} x^{2}\right )}} + \frac {\log \left (x^{2}\right )}{2 \, a^{2} c^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.07, size = 472, normalized size = 2.46 \begin {gather*} \frac {\ln \relax (x)}{a^2\,c^3}-\frac {\ln \left (b\,x^2+a\right )\,\left (b^4\,c-4\,a\,b^3\,d\right )}{2\,a^6\,d^4-8\,a^5\,b\,c\,d^3+12\,a^4\,b^2\,c^2\,d^2-8\,a^3\,b^3\,c^3\,d+2\,a^2\,b^4\,c^4}-\frac {\ln \left (d\,x^2+c\right )\,\left (a^2\,d^4-4\,a\,b\,c\,d^3+6\,b^2\,c^2\,d^2\right )}{2\,a^4\,c^3\,d^4-8\,a^3\,b\,c^4\,d^3+12\,a^2\,b^2\,c^5\,d^2-8\,a\,b^3\,c^6\,d+2\,b^4\,c^7}-\frac {\frac {-3\,a^3\,d^3+7\,a^2\,b\,c\,d^2+2\,b^3\,c^3}{4\,a\,c\,\left (a^3\,d^3-3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-b^3\,c^3\right )}+\frac {x^2\,\left (-2\,a^3\,d^4+3\,a^2\,b\,c\,d^3+7\,a\,b^2\,c^2\,d^2+4\,b^3\,c^3\,d\right )}{4\,a\,c^2\,\left (a^3\,d^3-3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-b^3\,c^3\right )}+\frac {b\,d^2\,x^4\,\left (-a^2\,d^2+3\,a\,b\,c\,d+b^2\,c^2\right )}{2\,a\,c^2\,\left (a^3\,d^3-3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-b^3\,c^3\right )}}{a\,c^2+x^2\,\left (b\,c^2+2\,a\,d\,c\right )+x^4\,\left (a\,d^2+2\,b\,c\,d\right )+b\,d^2\,x^6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________